import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vant from 'vant'
import './style/iconfont.css'
import 'vant/lib/index.css'
import 'amfe-flexible'


Vue.use(Vant)

import dayjs from 'dayjs'
import relativeTime from 'dayjs/plugin/relativeTime'
import 'dayjs/locale/zh-cn'
dayjs.locale('zh-cn') 
dayjs.extend(relativeTime)

Vue.filter('formatTime', val => {
  return dayjs().to(dayjs(val))
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
